package com.br.unisal.library.operations.settings;

import java.util.Map;

import com.br.unisal.library.util.ParameterTypes;


public class LoginOperationSettings extends OperationSettings {

	private Integer user;
	private String password;

	public LoginOperationSettings(OperationType login) {
		super(login);
	}
	
	public Integer getUser() {
		return user;
	}

	public String getPassword() {
		return password;
	}

	@Override
	public void setOperationSettings(Map<ParameterTypes, String> operationSettings) {
		password = operationSettings.get(ParameterTypes.PASSWORD);
		user = Integer.valueOf(operationSettings.get(ParameterTypes.USER));
	}

}
